package team.southcat.wsyygh.hospital.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import team.southcat.wsyygh.common.result.Result;
import team.southcat.wsyygh.model.pojo.hospital.Department;
import team.southcat.wsyygh.model.pojo.hospital.DepartmentVo;
import team.southcat.wsyygh.model.pojo.hospital.Hospital;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author QiuSiYi
 * @since 2023-04-20
 */
public interface DepartmentService extends IService<Department> {

    //分页查询科室列表
    Page getDepartmentPageList(Integer page, Integer pageSize, Department department, String adminId);

    //查询全部科室（id=1）下的科室
    List<DepartmentVo> getByParentId(long parentId);

    //增加科室
    Result addDepartment(Department department, String adminId);

    //删除科室
    Result deleteById(long id);

    //通过科室名查询科室
    List<Department> getByName(List<String> departmantName);

    //根据医院id获取所有科室
    List<DepartmentVo> getByHospitalId(int id);

    //查询全部科室下的科室
    List<DepartmentVo> getAllByAdminId(String adminId);


    boolean deleteByIds(List<Integer> ids);

}
